package com.example.spring_vue.controller;

import com.example.spring_vue.pojo.Testone;
import com.example.spring_vue.service.TestoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestoneController {

    @Autowired
    private TestoneService testoneService;

    @RequestMapping("/testone/findById")
    public Testone findById(Integer id) {
        return testoneService.findById(id);
    }
}
